<?php /* Smarty version 2.6.16, created on 2009-04-16 06:19:23
         compiled from AddQuiz.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'language', 'AddQuiz.html', 3, false),array('function', 'messages', 'AddQuiz.html', 14, false),array('function', 'str_replace', 'AddQuiz.html', 65, false),array('modifier', 'escape', 'AddQuiz.html', 67, false),)), $this); ?>
<?php if (! $this->_tpl_vars['bIsShowResults']): ?>
    <div style="padding:30px;font-size:10pt;" class="color">
    <div style="font-size:8pt;" class="color"><b><?php echo smarty_function_language(array('text' => 'please_read_first_on_how_to_submit'), $this);?>
</b>
    <ol>
        <li><?php echo smarty_function_language(array('text' => '_quiz_title_questions_and_answers_s'), $this);?>
</li>
        <li><?php echo smarty_function_language(array('text' => 'you_should_enter_at_least_one_up_to'), $this);?>
</li>
        <li><?php echo smarty_function_language(array('text' => 'each_question_is_marked_with_a_numb'), $this);?>
</li>
        <li><?php echo smarty_function_language(array('text' => 'once_you_have_succesfully_submited'), $this);?>
</li>
    </ol>
    </div>
    <br />
    <br />

    <?php echo smarty_function_messages(array('block' => 'AddQuiz'), $this);?>


    <form method="post" action="<?php echo $this->_tpl_vars['sUrl']; ?>
" name="form">
    <div style="font-size:8pt;">
        <div style="padding:10px;" class="border13">
            <b><?php echo smarty_function_language(array('text' => 'quiz_title'), $this);?>
</b>
            <br/><br/>
            <input type="text" name="title" value="<?php echo $this->_tpl_vars['aQuizData']['title']; ?>
" size="50" maxlength="100" onfocus="this.className='inputmain';" onblur="this.className='';" />
            <br/><br/>
        </div>
        <br/>
    <?php $_from = $this->_tpl_vars['aQuizData']['questions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['iNum'] => $this->_tpl_vars['sQuestion']):
?>
    <!-- START QUESTION <?php echo $this->_tpl_vars['iNum']; ?>
-->
    <div class="border2">
        <div class="border13">
            <div style="padding:5px;">
                <div style="padding:5px;"><b><?php echo smarty_function_language(array('text' => 'question'), $this);?>
 <?php echo $this->_tpl_vars['iNum']; ?>
</b></div>
                <div style="padding:5px;"><input type="text" name="aQuestion[<?php echo $this->_tpl_vars['iNum']; ?>
]" value="<?php echo $this->_tpl_vars['sQuestion']; ?>
" size="40" maxlength="100" onfocus="this.className='inputmain';" onblur="this.className='';" /></div>
            </div>
         </div>
         <br/>

        <div style="padding-left:20px;">
            <div><b><?php echo smarty_function_language(array('text' => 'correct_answer'), $this);?>
</b></div>
            <div><input type="text" name="aAnswer<?php echo $this->_tpl_vars['iNum']; ?>
[1]" value="<?php echo $this->_tpl_vars['aQuizData']['answers'][$this->_tpl_vars['iNum']][1]; ?>
" size="30"  maxlength="50"  style="vertical-align:top;"  onfocus="this.className='inputmain';" onblur="this.className='';"  /></div>
            <br/>
            <div><?php echo smarty_function_language(array('text' => 'answer_two'), $this);?>
</div>
            <div><input type="text" name="aAnswer<?php echo $this->_tpl_vars['iNum']; ?>
[2]" value="<?php echo $this->_tpl_vars['aQuizData']['answers'][$this->_tpl_vars['iNum']][2]; ?>
" size="30" maxlength="50"  style="vertical-align:top;"  onfocus="this.className='inputmain';" onblur="this.className='';" /></div>
            <br/>
            <div><?php echo smarty_function_language(array('text' => 'answer_three'), $this);?>
</div>
            <div><input type="text" name="aAnswer<?php echo $this->_tpl_vars['iNum']; ?>
[3]" value="<?php echo $this->_tpl_vars['aQuizData']['answers'][$this->_tpl_vars['iNum']][3]; ?>
" size="30" maxlength="50"  style="vertical-align:top;"  onfocus="this.className='inputmain';" onblur="this.className='';" /></div>
            <br/>
            <div><?php echo smarty_function_language(array('text' => 'answer_four'), $this);?>
</div>
            <div><input type="text" name="aAnswer<?php echo $this->_tpl_vars['iNum']; ?>
[4]" value="<?php echo $this->_tpl_vars['aQuizData']['answers'][$this->_tpl_vars['iNum']][4]; ?>
" size="30" maxlength="50"  style="vertical-align:top;"  onfocus="this.className='inputmain';" onblur="this.className='';" /></div>
        </div>
    <!-- END QUESTION <?php echo $this->_tpl_vars['iNum']; ?>
-->
    <br/>
    </div>
    <br/>

    <?php endforeach; endif; unset($_from); ?>
    </div>
    <br />
    <div style="text-align:center;"><input type="submit" name="act[quiz_add]" value="<?php echo smarty_function_language(array('text' => 'submit_your_quiz'), $this);?>
" style="cursor:pointer;" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" /></div>
    </form>
    </div>

<?php else: ?>
<table style="width:100%;" cellpadding="8" cellspacing="4">
    <tr>
        <td class="color" style="font-size:8pt;">
            <?php echo smarty_function_str_replace(array('text' => "`thanks_auser_user_for_submitting_yo`",'aUser_user' => ($this->_tpl_vars['aUser']['user'])), $this);?>
<br />
            <br /><br />
            <b><?php echo ((is_array($_tmp=$this->_tpl_vars['aQuizData']['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</b>
            <br /><br />
            <?php $this->assign('iPos', 0); ?>
            <?php $_from = $this->_tpl_vars['aQuizData']['questions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['iQuestion'] => $this->_tpl_vars['sQuestion']):
?>
                <?php if ($this->_tpl_vars['sQuestion']): ?>
                <?php $this->assign('iPos', $this->_tpl_vars['iPos']+1); ?>
                <div><?php echo $this->_tpl_vars['iPos']; ?>
. <?php echo ((is_array($_tmp=$this->_tpl_vars['sQuestion'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</div>
                <br />
                <div style="padding-left:20px;">
                <?php $_from = $this->_tpl_vars['aQuizData']['answers'][$this->_tpl_vars['iQuestion']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['answers'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['answers']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['sAnswer']):
        $this->_foreach['answers']['iteration']++;
?>
                <?php if (1 == $this->_foreach['answers']['iteration']): ?>
                    <b><?php echo ((is_array($_tmp=$this->_tpl_vars['sAnswer'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</b>
                <?php else: ?>
                    <?php echo ((is_array($_tmp=$this->_tpl_vars['sAnswer'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>

                <?php endif; ?>
                <br />
                <?php endforeach; endif; unset($_from); ?>
                </div>
                <br />
                <?php endif; ?>
            <?php endforeach; endif; unset($_from); ?>

        </td>

    </tr>
</table>
<?php endif; ?>